package net.flowas.genericcrud.audit.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@IdClass(MarkRecordPK.class)
public class Comment implements Serializable{
	/**
	 * 标记记录流水
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE)
	private Long serial;
	/**
	 * 模型类型,如Product等
	 */
	@Id
	private String modelType;
	/**
	 * 审计对象的标识
	 */
	@Id
	private Long auditFor;	
	private String content;
	private String userId;
	@Temporal(TemporalType.TIMESTAMP)
	private Date createDate;
	/**
	 * 点赞数量.
	 */
	private Integer likeNo;	

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getLikeNo() {
		return likeNo;
	}

	public void setLikeNo(Integer likeNo) {
		this.likeNo = likeNo;
	}

	public Long getSerial() {
		return serial;
	}

	public void setSerial(Long serial) {
		this.serial = serial;
	}

	public String getModelType() {
		return modelType;
	}

	public void setModelType(String modelType) {
		this.modelType = modelType;
	}

	public Long getAuditFor() {
		return auditFor;
	}

	public void setAuditFor(Long auditFor) {
		this.auditFor = auditFor;
	}
}
